package st.business.tepth.business.user.busnumber.workholder.maintain.work.content.standardwork;

import io.reactivex.disposables.Disposable;
import st.business.tepth.base.OnDataConvertListener;
import st.shadow.library.core.base.mvp.BaseModel;
import st.shadow.library.core.base.mvp.BasePresenter;
import st.shadow.library.core.base.mvp.BaseView;

/**
 * Author: shadow
 * Email:  1025431817@qq.com
 * Time:   2019-04-09 09:44
 */

public interface StandardWorkContract {
    interface View extends BaseView {
        void showCancelSucceed(int position);

        void showError(String msg);
    }

    interface Model extends BaseModel {

        Disposable cancelWork(String token, int maintainId,
                              OnDataConvertListener<String> listener);
    }

    abstract class Presenter extends BasePresenter<View> {
        abstract void cancelWork(String token, int maintainId,
                                 int position);
    }
}
